package com.qpf

import org.gradle.api.Plugin
import org.gradle.api.Project

class DemoPlugin implements Plugin<Project> {
    @Override
    void apply (Project project) {
        println "${project.name}> Hello PluginInBuildSrc"
        project.task('buildSrcTask') {
            doLast {
                println "${project.name}> buildSrcTas..., message: ${project.demoExtension.message}"
            }
        }
        project.extensions.add('demoExtension', DemoExtension)
        project.tasks.create('demoTask', DemoTask)
    }
}

class DemoExtension {
    String message
}
